package com.java.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangli
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PaymentInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 支付类型id
     */
    private Long typeId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 第三方支付平台订单id
     */
    private String platformOrderId;

    /**
     * 商品价格(单位:分)
     */
    private Long price;

    /**
     * 渠道来源
     */
    private String source;

    /**
     * 状态 0待支付 1支付成功 2支付失败
     */
    private Integer state;

    /**
     * 支付报文
     */
    private String paymessage;

    /**
     * 订单发起时间
     */
    private Date txnTime;

    private Date createTime;

    private Date updateTime;


}
